package com.ddd.exception;

import com.ddd.common.CommonResponse;
import com.netflix.zuul.exception.ZuulException;


/**
 *  @author: liuqisong
 *  @Date: 2021/4/22 10:51
 *  @Description:
 */
public class GatewayException extends ZuulException {

    public GatewayException(CommonResponse response) {
        super(response.getMessage(), response.getCode(), response.getMessage());
    }

    public GatewayException(int code, String message) {
        super(message, code, message);
    }

}
